version: "3.9"

services:


#  db:
#    image: nouchka/sqlite3:latest
#    volumes:
#      - ./data/db:/root/db
#    environment:
#      - SQLITE_DB=db.sqlite3

  web:
    image: sha256:e85c1b61691c2ec967d2975409c344fde13eb057bc329a92fbde571cb79a0218
    command: python manage.py runserver 0.0.0.0:8000
    volumes:
      - .:/code
    ports:
      - "8000:8000"
#    depends_on:
#      - db

  neo4j_user:
    image: neo4j:community


    restart: unless-stopped
    ports:
      - "7474:7474"
      - "7687:7687"
    volumes:
      - ./conf:/conf_user
      - ./data:/data_user
      - ./import:/import_user
      - ./logs:/logs_user
      - ./plugins:/plugins_user
    environment:
      # Raise memory limits
#      - NEO4J_dbms_memory_pagecache_size=1G
#      - NEO4J_dbms.memory.heap.initial_size=1G
#      - NEO4J_dbms_memory_heap_max__size=1G
      - NEO4J_AUTH=neo4j/23109900

  neo4j_historical:
    image: neo4j:community


    restart: unless-stopped
    ports:
      - "7475:7474"
      - "7688:7687"
    volumes:
      - ./conf:/conf_hist
      - ./data:/data_hist
      - ./import:/import_hist
      - ./logs:/logs_hist
      - ./plugins:/plugins_hist
    environment:
      # Raise memory limits
#      - NEO4J_dbms_memory_pagecache_size=1G
#      - NEO4J_dbms.memory.heap.initial_size=1G
#      - NEO4J_dbms_memory_heap_max__size=1G
      - NEO4J_AUTH=neo4j/23109900